package com.raymond.pinyougou.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @Author Raymond
 * @Description 分页实体类
 * @Date 2019/3/23 17:02
 * @Version 1.0
 **/
public class PageResult implements Serializable {
    private static final long serialVersionUID = 144567763358830160L;
    /**
     * 总条数
     */
    private long total;
    /**
     * 当前分页的数据
     */
    private List rows;

    public PageResult(){}

    public PageResult(long total, List rows) {
        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }
}
